#-*- coding: utf8 -*-

from tutor.scripts import *
from tutor.plugins.sympy import *

with display_block('Entradas'):
    # seleciona pontos
    alpha = One * oneof(2, 4)
    k = oneof(1, 2, 3, 4, 6, 8) / Two
    a = oneof(1, 2, 3, 4, 6, 8) / Two
    b = a + oneof(1, 2, 3, 4, 6, 8) / Two

with display_block('Resultados'):
    x0 = ((b-a)/k)**(1/alpha)
    lim_sup_y = b - k * x**alpha
    lim_sup_x = ((b - y)/ k) **(1/alpha)
    lim_sup_y_subs = b - k * y**alpha
    lim_sup_x_subs = ((b - y)/ k) **(1/alpha)
